package com.bckj.freshnow.payment.pay.wxpay;

import com.bckj.freshnow.payment.pay.PaymentConfig;
import com.bckj.freshnow.payment.pay.PaymentService;
import com.wechat.pay.java.core.Config;
import com.wechat.pay.java.service.refund.RefundService;

public class WxRefundPaymentService extends PaymentService {

    public WxRefundPaymentService(String appId) {
        super(appId);
    }

    @Override
    protected void init() {
        PaymentConfig paymentConfig = WxpayConfigProvider.get(appId);
        setPaymentConfig(paymentConfig);
        service = new RefundService.Builder().config((Config) paymentConfig.getConfig()).build();
    }
}
